<ul class="note-list" >
<?
if(is_array($records )){
foreach ($records as $r ){ ?>
  <li>
    <div>uid <?=$r['uid']?></div>
    <div>uname <?=$r['uname']?></div>
    <div>创建 <?=$r['created']?></div>
    <div>编辑 <?=$r['edited']?></div>
    <div>标题 <?=$r['title']?></div>
    <div>内容 <?=$r['content']?></div>
    <div>
      <a href="/note/view/<?=$r['id']?>" >查看</a>
      <a href="/note/edit/<?=$r['id']?>" >编辑</a> 
    </div>
  </li>
<?  }
}?>
</ul>
<?=$pagination?>